<#include "/WEB-INF/default/fragment/header.ftl">
<body>

<#include "/WEB-INF/default/fragment/nav.ftl">

<div class="container">

<div class="tms-logo"><img class="center-block" src="${request.contextPath}/assets/images/logo.png" alt=""></div>

<form action="${request.contextPath}/register-step2.action" method="post">
    <fieldset>
        <legend>
          <#assign registerStepIndex=1 >
          <#include "/WEB-INF/default/fragment/register_steps.ftl">
        </legend>
        <div class="form-group">
            <label for="exampleInputEmail1">邮箱</label>
            <#if user?exists && user['email']?exists>
            <p class="help-block text-success">${user['email']}</p>
            </#if>
        </div>
        <div class="form-group">
            <label for="exampleInputEmail1">昵称</label>
            <input type="text" class="form-control" name="user.nickname" value="<#if user?exists && user.nickname?exists>${user.nickname}</#if>">
            <#if fieldErrors?exists && fieldErrors['user.nickname']?exists>
            <p class="help-block">${fieldErrors['user.nickname']}</p>
            </#if>
        </div>
        <div class="form-group">
            <label for="exampleInputPassword1">真实姓名</label>
            <input type="text" class="form-control" name="user.realname" value="<#if user?exists && user.realname?exists>${user.realname}</#if>">
            <p class="help-block">${fieldErrors['user.realname']!""}</p>
        </div>
        <div class="form-group">
            <label for="exampleInputPassword1">联系手机</label>
            <input type="text" class="form-control" name="user.phone" value="<#if user?exists && user.phone?exists>${user.phone?string}</#if>">
            <p class="help-block">${fieldErrors['user.phone']!""}</p>
        </div>
       
        <button type="submit" class="btn btn-success btn-block">下一步</button>
        <a href="${request.contextPath}/register-step1.action">上一步</a>
    </fieldset>
</form>

</div>
</body>
<#include "/WEB-INF/default/fragment/footer.ftl">
